package com.mm.cloud.lease.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mm.cloud.lease.dto.housing.query.QueryHousingDTO;
import com.mm.cloud.lease.entity.Housing;
import com.mm.cloud.lease.vo.housing.HousingPageVO;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 房源 Mapper 接口
 * </p>
 *
 * @author mr
 * @since 2025-06-30
 */
public interface HousingMapper extends BaseMapper<Housing> {

    /**
     * 房源列表
     *
     * @param page
     * @param dto
     * @return
     */
    IPage<HousingPageVO> getHousingList(@Param("page") Page<HousingPageVO> page, @Param("dto") QueryHousingDTO dto);
}
